set(SCINTILLA_SOURCES
	./include/Accessor.h
	./include/KeyWords.h
	./include/Platform.h
	./include/PropSet.h
	./include/SciLexer.h
	./include/Scintilla.h
	./include/ScintillaWidget.h
	./include/SString.h
	./include/WindowAccessor.h
	./src/AutoComplete.cxx
	./src/AutoComplete.h
	./src/CallTip.cxx
	./src/CallTip.h
	./src/CellBuffer.cxx
	./src/CellBuffer.h
	./src/CharacterSet.h
	./src/CharClassify.cxx
	./src/CharClassify.h
	./src/ContractionState.cxx
	./src/ContractionState.h
	./src/Decoration.cxx
	./src/Decoration.h
	./src/Document.cxx
	./src/Document.h
	./src/DocumentAccessor.cxx
	./src/DocumentAccessor.h
	./src/Editor.cxx
	./src/Editor.h
	./src/ExternalLexer.cxx
	./src/ExternalLexer.h
	./src/Indicator.cxx
	./src/Indicator.h
	./src/KeyMap.cxx
	./src/KeyMap.h
	./src/KeyWords.cxx
	./src/LexAbaqus.cxx
	./src/LexAda.cxx
	./src/LexAPDL.cxx
	./src/LexAsm.cxx
	./src/LexAsn1.cxx
	./src/LexASY.cxx
	./src/LexAU3.cxx
	./src/LexAVE.cxx
	./src/LexBaan.cxx
	./src/LexBash.cxx
	./src/LexBasic.cxx
	./src/LexBullant.cxx
	./src/LexCaml.cxx
	./src/LexCLW.cxx
	./src/LexCmake.cxx
	./src/LexCOBOL.cxx
	./src/LexConf.cxx
	./src/LexCPP.cxx
	./src/LexCrontab.cxx
	./src/LexCsound.cxx
	./src/LexCSS.cxx
	./src/LexD.cxx
	./src/LexEiffel.cxx
	./src/LexErlang.cxx
	./src/LexEScript.cxx
	./src/LexFlagship.cxx
	./src/LexForth.cxx
	./src/LexFortran.cxx
	./src/LexGAP.cxx
	./src/LexGui4Cli.cxx
	./src/LexHaskell.cxx
	./src/LexHTML.cxx
	./src/LexInno.cxx
	./src/LexKix.cxx
	./src/LexLisp.cxx
	./src/LexLout.cxx
	./src/LexLua.cxx
	./src/LexMagik.cxx
	./src/LexMatlab.cxx
	./src/LexMetapost.cxx
	./src/LexMMIXAL.cxx
	./src/LexMPT.cxx
	./src/LexMSSQL.cxx
	./src/LexMySQL.cxx
	./src/LexNimrod.cxx
	./src/LexNsis.cxx
	./src/LexOpal.cxx
	./src/LexOthers.cxx
	./src/LexPascal.cxx
	./src/LexPB.cxx
	./src/LexPerl.cxx
	./src/LexPLM.cxx
	./src/LexPOV.cxx
	./src/LexPowerPro.cxx
	./src/LexPowerShell.cxx
	./src/LexProgress.cxx
	./src/LexPS.cxx
	./src/LexPython.cxx
	./src/LexR.cxx
	./src/LexRebol.cxx
	./src/LexRuby.cxx
	./src/LexScriptol.cxx
	./src/LexSmalltalk.cxx
	./src/LexSML.cxx
	./src/LexSorcus.cxx
	./src/LexSpecman.cxx
	./src/LexSpice.cxx
	./src/LexSQL.cxx
	./src/LexTACL.cxx
	./src/LexTADS3.cxx
	./src/LexTAL.cxx
	./src/LexTCL.cxx
	./src/LexTeX.cxx
	./src/LexVB.cxx
	./src/LexVerilog.cxx
	./src/LexVHDL.cxx
	./src/LexYAML.cxx
	./src/LineMarker.cxx
	./src/LineMarker.h
	./src/Partitioning.h
	./src/PerLine.cxx
	./src/PerLine.h
	./src/PositionCache.cxx
	./src/PositionCache.h
	./src/PropSet.cxx
	./src/RESearch.cxx
	./src/RESearch.h
	./src/RunStyles.cxx
	./src/RunStyles.h
	./src/ScintillaBase.cxx
	./src/ScintillaBase.h
	./src/SplitVector.h
	./src/Style.cxx
	./src/Style.h
	./src/StyleContext.cxx
	./src/StyleContext.h
	./src/SVector.h
	./src/UniConversion.cxx
	./src/UniConversion.h
	./src/ViewStyle.cxx
	./src/ViewStyle.h
	./src/WindowAccessor.cxx
	./src/XPM.cxx
	./src/XPM.h
)


include_directories(./include)
include_directories(./src)


if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
	include_directories(./win32)
	set(SCINTILLA_SOURCES
		${SCINTILLA_SOURCES}
		./win32/PlatformRes.h
		./win32/PlatWin.cxx
		./win32/ScintillaWin.cxx
		./win32/ScintRes.rc
		./win32/Margin.cur
	)
endif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")


if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
	include_directories(./gtk)
	set(SCINTILLA_SOURCES
		${SCINTILLA_SOURCES}
		./gtk/Converter.h
		./gtk/PlatGTK.cxx
		./gtk/scintilla-marshal.c
		./gtk/scintilla-marshal.h
		./gtk/ScintillaGTK.cxx
	)
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")



if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
	include_directories(./macosx)
	set(SCINTILLA_SOURCES
		${SCINTILLA_SOURCES}
		./macosx/ExtInput.cxx
		./macosx/ExtInput.h
		./macosx/PlatMacOSX.cxx
		./macosx/PlatMacOSX.h
		./macosx/QuartzTextLayout.h
		./macosx/QuartzTextStyle.h
		./macosx/QuartzTextStyleAttribute.h
		./macosx/ScintillaCallTip.cxx
		./macosx/ScintillaCallTip.h
		./macosx/ScintillaListBox.cxx
		./macosx/ScintillaListBox.h
		./macosx/ScintillaMacOSX.cxx
		./macosx/ScintillaMacOSX.h
		./macosx/TCarbonEvent.cxx
		./macosx/TCarbonEvent.h
		./macosx/TRect.h
		./macosx/TView.cxx
		./macosx/TView.h
		./macosx/SciTest/main.cpp
	)
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")


add_library( scintilla STATIC ${SCINTILLA_SOURCES}	)

